package com.yauthor.module.editor.services.popup
{
	import mx.core.UIComponent;
	import mx.styles.IStyleClient;
	
	/**
	 * Descriptor of popup displayed form <code>com.yauthor.module.editor.services.popup.IPopupProvider</code> service
	 * @see com.yauthor.module.editor.services.popup.IPopupProvider
	 */ 
	public class PopupInfo
	{		
		private var _popupURL:String
		private var _caller:UIComponent
		private var _message:String
		private var _modal:Boolean
		private var _styleClient:IStyleClient		
		
		/**
		 * Constructor
		 * @param url address of popup page
		 * @param caller component that opens popup
		 * @param message message that will be displayed on popup
		 * @param modal popup locks interface 
		 */ 
		public function PopupInfo(url:String,caller:UIComponent, message:String = null, modal:Boolean=true, styleClient:IStyleClient=null)
		{
			_popupURL = url
			_caller = caller
			_message = message;
			_modal =modal
			_styleClient = styleClient;
		}
		
		public function get popupURL():String
		{
			return _popupURL;
		}

		public function get caller():UIComponent
		{
			return _caller;
		}

		public function get message():String
		{
			return _message;
		}

		public function get modal():Boolean
		{
			return _modal;
		}

		public function get styleClient():IStyleClient
		{
			return _styleClient;
		}


	}
}